package com.yxx.community.exception;

/**
 * @Author: YuXinXin
 * @Description:
 * @Date:Created in 16:07 2020/2/5
 **/
public class CustomizeException extends RuntimeException {

  private String message;
  private Integer code;

  public CustomizeException(ICustomizeErrorCode errorCode) {
    this.code=errorCode.getCode();
    this.message = errorCode.getMessage();
  }
  @Override
  public String getMessage() {
    return message;
  }

  public Integer getCode() {
    return code;
  }
}
